<HTML><HEAD><TITLE>local_record(++Key)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">Obsolete</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>local_record(++Key)</H1>
Declare the record with key Key to be local to the caller module


<DL>
<DT><EM>Key</EM></DT>
<DD>Key specification of the form Name/Arity or just Name.
</DD>
</DL>
<H3>This built-in predicate is obsolete!</H3>
<H2>Description</H2>
   Declare the record with key Key to be local to the caller module.

<P>
   Key is equal to Key/0.

<P>

<H3>Modes and Determinism</H3><UL>
<LI>local_record(++) is det
</UL>
<H3>Modules</H3>
This predicate is sensitive to its module context (tool predicate, see @/2).
<H3>Exceptions</H3>
<DL>
<DT><EM>(4) instantiation fault </EM>
<DD>Key is not instantiated.
<DT><EM>(5) type error </EM>
<DD>Key is not of the form Atom or Atom/Integer.
<DT><EM>(44) record already exists </EM>
<DD>Key is already the key of a local record.
</DL>
<H2>Examples</H2>
<PRE>
Success:
      [eclipse]: module(numbers).
      [numbers]: local_record(type/0).
      yes
      [numbers]: record(type, integer),
              record(type, real),
              record(type, fractional).
      yes.
      [numbers]: module(beer).
      [beer]: local_record(type),
              record(type, lager),
              record(type, stout).
      yes.
      [beer]: recorded(type, Type).
      Type = lager     More? (;)
      Type = stout     More? (;)
      no (more) solution.
      [beer]: module(numbers).
      [numbers]: recorded(type, Type).
      Type = integer     More? (;)
      Type = real     More? (;)
      Type = fractional     More? (;)
      no (more) solution.
      [numbers]: module(other).
      [other]: recorded(type, Type).
      no (more) solution.

Error:
      local_record(X).               (Error 4).
      local_record(123).             (Error 5).
      local_record(key/3),
          local_record(key/3).       (Error 44).



</PRE>
<H2>See Also</H2>
<A HREF="../../kernel/modules/local-1.html">record / 1</A>, <A HREF="../../kernel/obsolete/abolish_record-1.html">abolish_record / 1</A>, <A HREF="../../kernel/record/erase-2.html">erase / 2</A>, <A HREF="../../kernel/record/erase_all-1.html">erase_all / 1</A>, <A HREF="../../kernel/record/record-2.html">record / 2</A>, <A HREF="../../kernel/record/recorded-2.html">recorded / 2</A>
</BODY></HTML>
